using MicroMsg.Common.Utils;
using MicroMsg.Storage;
using MicroMsg.UI.UserContrl;
using MicroMsg.UI.Util;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
namespace MicroMsg.UI.Page
{
	public class RemindAttentionPage : BasePage
	{
		public delegate void ContactChooseCompelete(List<Contact> conList);
		private const string TAG = "RemindAttentionPage";
		public RemindAttentionPage.ContactChooseCompelete ContactChooseCompeleteCallBack;
		internal Grid LayoutRoot;
		internal ModGroupMemberCtrl AddPeopleList;
		private bool _contentLoaded;
		public RemindAttentionPage()
		{
			this.InitializeComponent();
			base.add_Loaded(new RoutedEventHandler(this.Page_Loaded));
			base.add_Unloaded(new RoutedEventHandler(this.Page_Unloaded));
		}
		private void Page_Loaded(object sender, RoutedEventArgs e)
		{
			Log.smethod_5("RemindAttentionPage", "Page_Loaded");
		}
		private void Page_Unloaded(object sender, RoutedEventArgs e)
		{
			Log.smethod_5("RemindAttentionPage", "Page_Unloaded");
		}
		protected override void OnPageIn(object[] object_0)
		{
			Log.smethod_5("RemindAttentionPage", "OnPageIn");
			if (object_0 != null && Enumerable.Count<object>(object_0) == 2)
			{
				List<Contact> conList = object_0[0] as List<Contact>;
				this.ContactChooseCompeleteCallBack = (object_0[1] as RemindAttentionPage.ContactChooseCompelete);
				this.AddPeopleList.InitMemberList(conList);
				return;
			}
			base.GoBack();
		}
		protected override void OnPageOut()
		{
			Log.smethod_5("RemindAttentionPage", "OnPageOut");
			if (this.ContactChooseCompeleteCallBack != null)
			{
				this.ContactChooseCompeleteCallBack(this.AddPeopleList.GetContact());
			}
		}
		protected override void OnPageBack()
		{
			Log.smethod_5("RemindAttentionPage", "OnPageBack");
		}
		protected override void OnBackKeyPress(CancelEventArgs cancelEventArgs_0)
		{
			if (ChatPeopleButton.itemMode == ChatPeopleButton.PeopleButtonMode.delMode)
			{
				cancelEventArgs_0.set_Cancel(true);
			}
			base.OnBackKeyPress(cancelEventArgs_0);
		}
		public static void GoToThisPage(object[] para)
		{
			ToolFunction.GotoPageForUserControl("/Source/Plugin/Sns/Common/UI/UploadAndPost/RemindAttentionPage.xaml", para, false);
		}
		[DebuggerNonUserCode]
		public void InitializeComponent()
		{
			if (this._contentLoaded)
			{
				return;
			}
			this._contentLoaded = true;
			Application.LoadComponent(this, new Uri("/MicroMsg;component/Source/Plugin/Sns/Common/UI/UploadAndPost/RemindAttentionPage.xaml", 2));
			this.LayoutRoot = (Grid)base.FindName("LayoutRoot");
			this.AddPeopleList = (ModGroupMemberCtrl)base.FindName("AddPeopleList");
		}
	}
}
